
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="renderer" content="webkit" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta name="author" content="z" />
    <title>文章阅读</title>
    <link rel="stylesheet" th:href="@{/font-awesome/css/font-awesome.min.css}">
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}" />
    <link th:href="@{/css/index_style.css}" rel="stylesheet" type="text/css">
    <link rel="stylesheet" th:href="@{/css/master.css}" />
    <link rel="stylesheet" th:href="@{/css/gloable.css}" />
    <link rel="stylesheet" th:href="@{/css/nprogress.css}" />
    <link rel="stylesheet" th:href="@{/css/blog.css}" />
    <link rel="stylesheet" th:href="@{/css/typo.css}" />
    <link rel="stylesheet" th:href="@{/css/prism.css}" />
    <link rel="stylesheet" th:href="@{/js/plugins/tocbot/tocbot.css}" />

    <style>
        .tag {
            display: inline-block;
            font-size: 12px;
            padding: 2px 5px;
            background-color: #f1f2f0;
            color: #787977;
            margin: 2px;
            text-decoration: none;
            -webkit-transition: all .2s;
            transition: all .2s;
            border-bottom: none;

        }
    </style>
</head>
<body>
    <div class="header">
    </div>
    <header th:replace="common :: header"/>
    <div class="doc-container" id="doc-container">
        <div class="container-fixed">
            <div class="col-content" style="width:100%">
                <div class="inner">
                    <article class="article-list">
                        <section class="article-item">
                            <aside class="title" style="line-height:1.5;">
                                <h4 th:text="${blog.title}"></h4>
                                <p class="fc-grey fs-14">
                                    <small>
                                        作者：<a href="javascript:void(0)" target="_blank" class="fc-link" th:text="z"></a>
                                    </small>
                                    <small class="ml10">围观群众：<i class="readcount" th:text="${blog.views}">0</i></small>
                                    <small class="ml10">更新于 <label th:text="${#dates.format(blog.createTime, 'yyyy-MM-dd HH:mm:ss')}"></label> </small>
                                </p>
                            </aside>
                            <div class="time mt10" style="padding-bottom:0;">
                                <span class="day" style="height: 35px; font-size: 20px" th:text="${blog.typeName}"> </span>
                                <!--<span class="month fs-18">7<small class="fs-14">月</small></span>-->
                                <span class="year fs-18" th:text="${#dates.format(blog.updateTime, 'yyyy-MM-dd HH:mm:ss')}"></span>
                            </div>
                            <div id="waypoint" class="content artiledetail typo typo-selection js-toc-content " style="border-bottom: 1px solid #e1e2e0; padding-bottom: 20px;">
                                  <div th:utext="${blog.content}">
                                  </div>
                                <div class="copyright mt20" th:if="${blog.shareStatement}">
                                    <p class="f-toe fc-black">
                                        非特殊说明，本文版权归 Z个人博客 所有，转载请注明出处.
                                    </p>
                                    <p class="f-toe">
                                        本文标题：
                                        <a href="javascript:void(0)" class="r-title" th:text="${blog.title}"></a>
                                    </p>
                                    <p class="f-toe">
                                        本文网址：
                                        <a href="#">https://xy94.top</a>
                                    </p>
                                </div>
                                <div id="aplayer" style="margin:5px 0"></div>
                                <h6>延伸阅读</h6>
                                <div class="tags" style="line-height: normal">
                                    <span class="fa fa-tags fs-16"></span>
                                    <a th:each="tag : ${blog.tags}" th:href="|../tag/${tag.id}|" th:text="${tag.name}" class="tag"></a>
                                </div>
                                <ol class="b-relation">

                                </ol>
                            </div>

                            <div th:if="${blog.shareStatement}">
                                <div class="bdsharebuttonbox share" data-tag="share_1" >
                                    <ul>
                                        <li class="f-praise"><span><a class="s-praise"></a></span></li>
                                        <li class="f-weinxi"><a class="s-weinxi" data-cmd="weixin"></a></li>
                                        <li class="f-sina"><a class="s-sina" data-cmd="tsina"></a></li>
                                        <li class="f-qq" href="#"><i class="fa fa-qq"></i></li>
                                        <li class="f-qzone"><a class="s-qzone" data-cmd="qzone"></a></li>
                                    </ul>
                                </div>
                                <div class="f-cb"></div>
                                <div class="mt20 f-m-itemfwn fs-24 fc-grey comment" style="border-top: 1px solid #e1e2e0; padding-top: 20px;">
                                </div>
                            </div>
                            <div id="pinglun" class="layui-elem-field layui-field-title" th:if="${blog.commentabled}">
                                <legend>评论</legend>
                                <div class="layui-field-box">
                                    <div class="leavemessage" style="text-align:initial">
                                        <div class="layui-form blog-editor">
                                            <input type="hidden" name="blogId" id="articleid" th:value="${blog.id}">
                                            <div class="layui-form-item">
                                                <textarea name="content" lay-verify="content" id="remarkEditor" placeholder="请输入内容" class="layui-textarea"></textarea>
                                            </div>
                                            <div class="layui-form-item">
                                                <input name="email" id="email" placeholder="邮箱" class="layui-input"></input>
                                                <input name="nickname" id="nickname" placeholder="站内昵称" class="layui-input"></input>
                                            </div>
                                            <div class="layui-form-item">
                                                <button class="layui-btn" onclick="tj()">提交</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div th:fragment="commentList">
                                <ul class="blog-comment" id="blog-comment">
                                    <li class="zoomIn article" th:each="comment : ${comments}">
                                        <div class="comment-parent">
                                            <a name="remark-1"></a>
                                            <img th:src="@{/img/yk.jpg}" />
                                            <div class="info">
                                                <span class="username" th:text="${comment.nickname}"></span>
                                            </div>
                                            <div class="comment-content" th:text="${comment.content}">
                                            </div>
                                            <p class="info info-footer">
                                                <span class="comment-time" th:text="${#dates.format(comment.createTime,'yyyy-MM-dd HH:mm')}"></span>
                                                <a href="javascript:;" class="btn-reply" th:data-targetid="${comment.id}" th:data-targetname="${comment.nickname}" onclick="a(this)">回复</a>
                                            </p>
                                        </div>
                                        <hr />
                                        <div th:if="${#arrays.length(comment.replyComments)}>0">
                                            <div class="comment-child" th:each="reply : ${comment.replyComments}">
                                                <a name="reply-1"></a>
                                                <img th:src="@{/img/a.jpg}">
                                                <div class="info">
                                                    <span class="username" th:text="${reply.nickname}"></span>
                                                    <span style="padding-right:0;margin-left:-5px;">回复</span>
                                                    <span class="username" th:text="${comment.nickname}"></span>
                                                    <span th:text="${reply.content}"></span>
                                                </div>
                                                <p class="info">
                                                    <span class="comment-time" th:text="${#dates.format(reply.createTime,'yyyy-MM-dd HH:mm')}"></span>
                                                    <a href="javascript:;" class="btn-reply" th:attr="data-targetid=${reply.id},data-targetname=${reply.nickname}" onclick="a(this)">回复</a>
                                                </p>
                                                <hr /> <!-- 回复第三级 -->
                                                <div th:if="${#arrays.length(reply.replyComments)}>0">
                                                    <div class="comment-child" th:each="r : ${reply.replyComments}">
                                                        <a name="reply-1"></a>
                                                        <img th:src="@{/img/a.jpg}">
                                                        <div class="info">
                                                            <span class="username" th:text="${r.nickname}"></span>
                                                            <span style="padding-right:0;margin-left:-5px;">回复</span>
                                                            <span class="username" th:text="${reply.nickname}"></span>
                                                            <span th:text="${r.content}"></span>
                                                        </div>
                                                        <p class="info">
                                                            <span class="comment-time" th:text="${#dates.format(r.createTime,'yyyy-MM-dd HH:mm')}"></span>
                                                            <a href="javascript:;" class="btn-reply" th:attr="data-targetid=${r.id},data-targetname=${r.nickname}" onclick="a(this)">回复</a>
                                                        </p>
                                                    </div>
                                                </div>
                                            </div>

                                        </div>



                                        <div class="replycontainer layui-hide">
                                            <div class="layui-form">
                                                <input type="hidden" name="remarkId" value="1">
                                                <input type="hidden" name="parentCommentId" value="0">
                                                <div class="layui-form-item">
                                                    <textarea name="replyContent" lay-verify="replyContent" placeholder="请输入回复内容" class="layui-textarea" style="min-height:80px;"></textarea>
                                                </div>
                                                <div class="layui-form-item">
                                                    <input name="replyEmail" id="replyEmail" placeholder="邮箱" class="layui-input" style="width: auto; display: initial"></input>
                                                    <input name="ReplyNickname" id="ReplyNickname" placeholder="站内昵称" class="layui-input" style="width: auto; display: initial; margin-left: 10px;"></input>
                                                    <button class="layui-btn layui-btn-xs" style="margin-left: 10px;" onclick="b()">提交</button>
                                                </div>
                                            </div>
                                        </div>
                                    </li>
                                </ul>
                            </div>
                            <div id="comment-container" >

                            </div>

                        </section>
                    </article>
                </div>
            </div>
        </div>
    </div>

    <div id="toolbar" class="" style="padding: 1em; position: fixed; box-sizing: inherit; bottom: 60px; right: 0;">
        <div class="buttons" style="display: inline-flex; flex-direction: column;width: 50px;">
            <button class="button layui-btn" style="padding: 0;">目录</button>
            <a href="#pinglun" class="pl layui-btn"  style="padding: 0;margin: 1px 0 0 0;">评论</a>
        </div>
    </div>

    <div class="toc-container" style="height: 100%;overflow: auto;">
        <ol class="js-toc">

        </ol>
    </div>
    <footer th:replace="common :: footer"/>

    <script th:src="@{/layui/layui.js}"></script>
    <script th:src="@{/pear/pear.js}"></script>
    <script th:src="@{/js/yss/gloable.js}"></script>
    <script th:src="@{/js/plugins/nprogress.js}"></script>
    <script th:src="@{/js/plugins/tocbot/tocbot.min.js}"></script>
    <script th:src="@{/js/prism.js}"></script>
    <script th:src="@{/js/jquery.min.js}"></script>
    <script th:src="@{/js/plugins/waypoints/jquery.waypoints.js}"></script>
    <script th:src="@{/js/pagecomment.js}"></script>
<!--

    <div class="container">
        <div class="demo">
            <div class="snowwrap">
                <div class="snow-container"></div>
            </div>

            <style type='text/css'>
                .snowwrap,.snow-container{position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 100001;}
            </style>
            <script th:src="@{/js/jquery.min.js}"></script>
            <script th:src="@{/js/plugins/snow.js}"></script>
        </div>
    </div>
-->

    <script>NProgress.start();</script>
    <script> 
        window.onload = function () {
            NProgress.done();

        };

        var blogId = [[${blog.id}]];
    </script>
</body>
</html>
